<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Main Menu</title>
</head>
<body bgcolor="#99CCFF">
	<f:view>
		<center>
			<h:form>
				<h:panelGrid columns="2">
					<h:commandButton type="submit" value="Home"
						action="index?faces-redirect=true" />

					<h:commandButton type="submit" value="Logout"
						action="logout?faces-redirect=true" />
				</h:panelGrid>
				<br/>
				<h:panelGrid columns="3">

					<h:outputText value="Select Table" />
					<h:selectOneListbox value="#{dbaseBean.tableName}" size="1">
						<f:selectItem itemValue="logintable" itemLabel="Login Table" />
						<f:selectItem itemValue="logtable" itemLabel="Log Table" />
					</h:selectOneListbox>
					<h:outputText value="" />

					<h:commandButton type="submit" value="Create Table"
						action="#{dbaseBean.createTable}" />
					<h:commandButton type="submit" value="Display Table"
						action="#{dbaseBean.displayTable}" />
					<h:commandButton type="submit" value="Drop Table"
						action="#{dbaseBean.dropTable}" />
				</h:panelGrid>
			</h:form>
		</center>

		<br />
		<hr />
		<br />

		<h:outputText rendered="#{messageBean.errorMessage}"
			value="#{messageBean.message}" escape="false" />

		<f:verbatim>
			<br />
			<hr />
			<br />
		</f:verbatim>
	</f:view>
</body>
</html>